package com.yan.utils;

import com.yan.beans.User;

import javax.servlet.http.HttpServletRequest;

/**
 * Created by Administrator on 2020/1/2 0002.
 */
public class UserUtil {
    public static boolean isLogin(HttpServletRequest request){
        User user = (User)request.getSession().getAttribute("user");
        if(user!=null){
            return true;
        }

        return false;
    }
}
